import request from '@/utils/request'

// 查询回收明细列表
export function listRecycleOrder(query) {
  return request({
    url: '/business/recycleOrder/list',
    method: 'get',
    params: query
  })
}

// 查询回收明细所有列表
export function listAllRecycleOrder(query) {
  return request({
    url: '/business/recycleOrder/listAll',
    method: 'get',
    params: query
  })
}

// 查询回收明细详细
export function getRecycleOrder(id) {
  return request({
    url: '/business/recycleOrder/getInfo/' + id,
    method: 'get'
  })
}

// 新增回收明细
export function addRecycleOrder(data) {
  return request({
    url: '/business/recycleOrder/add',
    method: 'post',
    data: data
  })
}

// 修改回收明细
export function updateRecycleOrder(data) {
  return request({
    url: '/business/recycleOrder/edit',
    method: 'post',
    data: data
  })
}

// 删除回收明细
export function delRecycleOrder(id) {
  return request({
    url: '/business/recycleOrder/remove/' + id,
    method: 'get'
  })
}
